package com.tarena.lbs.basic.web.config;

import com.tarena.lbs.common.passport.encoder.JwtEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JwtEncoderConfig {
    //登录功能是生成jwt的对象工具 要和解析jwt工具对象 盐相同
    @Bean
    public JwtEncoder initJwtEncoder(){
        JwtEncoder jwtEncoder = new JwtEncoder();
        jwtEncoder.setSecret("tarena2024Up;");
        return jwtEncoder;
    }
}
